package com.hmkj.core.service.amount;

import com.hmkj.core.model.amount.AccountModel;
import com.hmkj.core.po.amount.Account;
import com.hmkj.core.service.base.GenericService;

import java.math.BigDecimal;

/**
 * 账户业务相关Service接口<br>
 *
 * @author donfy
 * @ClassName: AccountService
 * @date 2017-08-15 03:10:41
 */
public interface AccountService extends GenericService<Integer, Account> {
    /**
     * 获取用户账户相关信息
     *
     * @param userId 用户ID
     * @return
     */
    AccountModel getAccountModel(Integer userId);

    /**
     * 根据用户类型统计可用金额
     * @param type
     * @return
     */
    BigDecimal  selectSumAvailableByType(Integer type,Integer agentId,String startTime,String endTime);

    /**
     * 根据用户类型统计冻结金额
     * @param type
     * @return
     */
    BigDecimal selectSumFreezeByType(Integer type,Integer agentId,String startTime,String endTime);

}
